package com.etc.service;

import com.etc.dao.CareerDAO;
import com.etc.entity.Career;

public class CareerService {

	CareerDAO careerDao = new CareerDAO();
	
	//根据careerId返回职业对象
	public Career findCareerById(String careerId) {
		return careerDao.findCareerById(careerId);
	}
	//根据classId返回职业对象
	public Career findCareerByClassId(String classId) {
		return careerDao.findCareerByClassId(classId);
	}
	
	//测试
	public static void main(String[] args) {
		CareerService careerSer = new CareerService();
		System.out.println(careerSer.findCareerById("c2b8ef00").toString());
	}
}
